package com.ganmiao.server.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ganmiao.entity.BaseColumns;
import com.ganmiao.server.sys.validated.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DistrictInfo extends BaseColumns {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("地址主键id")
    private Integer id;

    @ApiModelProperty("编码")
    private String regionCode;

    @ApiModelProperty("名称")
    private String regionName;

    @ApiModelProperty("级别：1省，2市，3区县")
    private String regionLevel;

    @ApiModelProperty("上级编码（省级默认为0）")
    private String parentRegionCode;

    @ApiModelProperty("状态：1正常，9删除/失效")
    private String status;

    @ApiModelProperty("经度")
    private String longitude;

    @ApiModelProperty("维度")
    private String latitude;


}
